import request from '@/utils/request'

export const getRegionListApi = params => {
  return request({
    url: '/vm-service/region/search',
    method: 'GET',
    params
  })
}

export const addRegionApi = data => {
  return request({
    url: '/vm-service/region',
    method: 'POST',
    data
  })
}

export const updateRegionApi = data => {
  return request({
    url: `/vm-service/region/${data.id}`,
    method: 'PUT',
    data
  })
}

export const delRegionApi = id => {
  return request({
    url: `/vm-service/region/${id}`,
    method: 'DELETE'
  })
}
